<?php defined('SYSPATH') or die('No direct script access.');
/**
 * Session 配置
 *
 * 公共默认配置选项：
 *      name        => session  会话名称
 *      encrypted   => FALSE    启用加密保护
 *      lifetime    => 7200     生命周期，单位(秒)
 */
return array(
    'cache' => array(
        'lifetime' => 7200,
        'group' => 'memcache', // 参考 config/cache.php
    ),
    'database' => array(
        'lifetime' => 7200,
        'group'    => 'session', // 参考 config/database.php
        'table'    => 'sessions',
        'gc'       => 500,
        'columns'  => array(
            'session_id'  => 'session_id',
            'last_active' => 'last_active',
            'contents'    => 'contents'
        ),
    ),
    'cookie' => array(
        'lifetime' => 7200,
        'encrypted' => FALSE,
    ),
    'native' => array(
        'lifetime' => 7200,
    ),
);
